package com.yuanchu.goods.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanchu.goods.entity.YoshopGoodsCategoryRelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 商品与分类关系记录表
 * 
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 02:17:43
 */
@Mapper
public interface YoshopGoodsCategoryRelDao extends BaseMapper<YoshopGoodsCategoryRelEntity> {
	@Select("select goods_id from yoshop_goods_category_rel where category_id = #{categoryId}")
	List<Integer> queryGoodsIdByCategoryId(Integer categoryId);

}
